import request from "@/utils/request";

// 应用列表分页查询
export function appPage(data) {
  return request({
    url: "/v1/app-task/appPage",
    method: "get",
    params: data
  });
}


//添加设备的列表
export function choiceDevice(data) {
    return request({
      url: "/v1/device/choiceDevice",
      method: "get",
      params: data
    });
  }
  
//容器列表

export function containerList(data) {
  return request({
    url: "/v1/container/list",
    method: "get",
    params: data
  });
}


//创建 发送第一次命令

export function appTask(data) {
  return request({
    url: "/v1/app-task/save",
    method: "post",
    data
  });
}

//根据任务ID 查询



export function appTaskId(data) {
  return request({
    url: "/v1/app-task/byTaskId",
    method: "get",
    params:data
  });
}


//分页查询 

export function appPageTask(data) {
  return request({
    url: "/v1/app-task/page",
    method: "get",
    params: data
  });
}

//根据id

export function getAppTaskId(id) {
  return request({
    url: "/v1/app-task/get/"+ id,
    method: "get"
  });
}


//下发命令



export function commandTask(data) {
  return request({
    url: "/v1/app-task/command",
    method: "post",
    data
  });
}
